const {questionsModel} = require('../models/questionsModel')

async function getQuestions(req, res, next){
    const {KnowledgePointId} = req.query;
    console.log('11111111111111111111111111111');
    const result = await questionsModel.find({KnowledgePointId});
    console.log(result);
    if(result){
        res.send({
            code:200,
            result
        })
    }
}

module.exports={
    getQuestions
}